﻿@{
    //产品名称
    var TName = ViewBag.TName;
    //产品描述
    var RouteIntroduce = ViewBag.RouteIntroduce;
    //总价
    var total = ViewBag.total;
    //获取提交订单是产生的订单号
    var Order_No = ViewBag.Order_No;
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="~/css/AlipayIndex.css" rel="stylesheet" type="text/css" />
    <link href="~/css/style.css" rel="stylesheet" type="text/css" />
    <link href="~/css/common.css" rel="stylesheet" type="text/css" />
    <link href="~/layui-v2.5.4/layui/css/modules/layer/default/layer.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="~/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="~/layui-v2.5.4/layui/lay/modules/layer.js"></script>
    <title>支付宝支付</title>
</head>
<body>
    <form id="form1" action="/Touristroute_Alipay/Touristroute_Notice" style="margin-top:50px;margin-left:36px">
            <div>
                <div id="body1" class="show" name="divcontent">
                    <dl class="content">
                        <dt>
                            商户订单号
                            ：
                        </dt>
                        <dd>
                            <input type="text" ID="WIDout_trade_no" name="Order_No" value="@if (Order_No != null){@Order_No}" />
                        </dd>

                        <hr class="one_line">
                        <dt>
                            订单名称
                            ：
                        </dt>
                        <dd>
                            <input type="text" ID="WIDsubject" name="Order_ProInfo" value="@if (@TName != null) {@TName}">
                        </dd>
                        <hr class="one_line">
                        <dt>
                            付款金额
                            ：
                        </dt>
                        <dd>
                            <input type="text" ID="WIDtotal_amount" name="Order_Money" value="@if (@total != null) {@total}">
                        </dd>
                        <hr class="one_line">
                        <dt>商品描述：</dt>
                        <dd>
                            <input type="text" ID="WIDbody" name="Order_Content" value="@if (@RouteIntroduce != null) {@RouteIntroduce}">
                        </dd>


                        <hr class="one_line">
                        <dt></dt>
                        <dd id="btn-dd">
                            <span class="new-btn-login-sp">
                                <input type="submit" ID="BtnAlipay" name="BtnAlipay" class="new-btn-login" Text="确 认" Style="text-align: center;" />
                            </span>
                            <span class="note-help">如果您点击“付款”按钮，即表示您同意该次的执行操作。</span>
                        </dd>
                    </dl>
                </div>
            </div>
        </form>
</body>
</html>
<script>
    var tabs = document.getElementsByName('tab');
    var contents = document.getElementsByName('divcontent');
    (function changeTab(tab) {
        for (var i = 0, len = tabs.length; i < len; i++) {
            tabs[i].onmouseover = showTab;
        }
    })();
    function showTab() {
        for (var i = 0, len = tabs.length; i < len; i++) {
            if (tabs[i] === this) {
                tabs[i].className = 'selected';
                contents[i].className = 'show';
            } else {
                tabs[i].className = '';
                contents[i].className = 'tab-content';
            }
        }
    }
    ////动态生成订单号
    //function GetDateNow() {
    //    var vNow = new Date();
    //    var sNow = "";
    //    sNow += String(vNow.getFullYear());
    //    sNow += String(vNow.getMonth() + 1);
    //    sNow += String(vNow.getDate());
    //    sNow += String(vNow.getHours());
    //    sNow += String(vNow.getMinutes());
    //    sNow += String(vNow.getSeconds());
    //    sNow += String(vNow.getMilliseconds());
    //    document.getElementById("WIDout_trade_no").value = sNow;
    //}
    //GetDateNow();
</script>